package com.data.service.impl;

import com.data.entity.User;
import com.data.mapper.UserMapper;
import com.data.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ytj
 * @date 2024/4/22
 */
@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public void add(User user) {
        this.userMapper.add(user);
    }

    @Override
    public List<User> selectAll() {
        return this.userMapper.selectAll();
    }
}
